package com.ruibang.glass.purchase.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruibang.glass.purchase.domain.req.PurchaseApplicationReq;
import com.ruibang.glass.purchase.entity.PurchaseApplicationList;
import com.ruibang.glass.purchase.entity.PurchaseSpecialApplicationList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 采购申请列表 Mapper 接口
 * </p>
 *
 * @author mameng
 * @since 2024-03-26
 */
@Mapper
public interface PurchaseApplicationListMapper extends BaseMapper<PurchaseApplicationList> {

    IPage<PurchaseApplicationList> getPage(Page<PurchaseApplicationList> page, @Param("purchaseApplicationReq") PurchaseApplicationReq purchaseApplicationReq);

    IPage<PurchaseSpecialApplicationList> specialList(Page<PurchaseSpecialApplicationList> page, @Param("purchaseApplicationReq") PurchaseApplicationReq purchaseApplicationReq);

    String getSequenceNumber();

    PurchaseApplicationList getByNumber(@Param("number") String number);

}
